package day0524;
// 12321
public class Q5 {
    public static void main(String[] args) {
        int num=12321;
        int w=num/(10*10*10*10) %10;
        int q=num/(10*10*10) %10;
        int b=num/(10*10) %10;
        int s=num/(10) %10;
        int g=num/(int)(Math.pow(10,0))  %10;
        if(w==g && q==s){
            System.out.println("此数是回文数");
        }else{
            System.out.println("此数不是回文数");
        }

    }
}
